package nuonuo.com.view;

import android.content.Context;

/**
 * Created by n6 on 2017/3/3.
 */

public class DimenUtils {
    public static float dip2px(Context context, float dpValue) {
        final float scale = context.getResources().getDisplayMetrics().density;
        return  (dpValue * scale +0.5f);
    }
}
